package com.it.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Accessors(chain = true)    //链式写法，默认为 false
public class Dept implements Serializable {

    private long id;
    private String name;
    private String db_source;

    public Dept(String name, String db_source) {
        this.name = name;
        this.db_source = db_source;
    }

    public Dept(String name) {
        this.name = name;
    }
}
